import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
@Injectable({
  providedIn: 'root'
})
export class LiveService {
  constructor(private http: HttpClient) { }
  getLiveRoom(id) {
    return this.http.get(`https://liveserver.ysjlive.com/liveroom/liveroombyuser?PK_LiveRoomGuid=${id}`).toPromise().then(res => { return res })
  }
  getOnlineLive() {
    return this.http.get(`https://liveserver.ysjlive.com/live/onlinelive`).toPromise().then(res => { return res })
  }
}
